changing method for scale image