fixed bug with url generation for scaled images