Scales down Gallery images if they exceed browser resolution

Scales down Gallery images if they exceed browser resolution