Add URL encoding to image resize