Adapting image scale to avoid lost of image pixels

If image is scale 2 or another scale, original method doesn't work well. So I will make small change to consider image scale when it create bitmap and when it creates adjusted UIImage.