add custom variable to confine img width