Support stretched images and add fittedImage API