Scaling in SDwebImageManager is done on the ImageCache queue that also handles saving and retrieving data from disk. Scaling in the ImageCache is already made on that queue. Replaced the scaling code with another that seems to be faster.