fixes margining for GR img