corrected code for comparing images
corrected bug zoom in out step for mac os