One click auto enhance for gallery images
refactored worker to calculate min/max correctly