Fixed random calls to image scaling

fixed #7