scale image and return directly as response type