process thumbnail for the required scale