Changes image display size and margins