Fixed firefox image resizing issue