fixes image sizing bug