Fixed non-square shape bug in photometry error estimate.
Forgot to push last changes