Set proper image spacing