change scale implementation to imgscalr