Replacing image resizing by image zoom (javascript)