Taking width/height from the image

Taking the width/height from the source image instead from the
boundingclientrect.