Add config option for adopting the original image's dimensions