Students earn diplomas online through city library program