Fix: sort images with average brightness.

Some raw images do not contain metadata about ISO/shutter/aperture. For instance,
when the aperture control is manual. In that case, images are not sorted properly.