use resize api for hero image