image resizing api for refresh app