squashed bug causing a loop in image zoom