If you want your end users to be able to replace an image (such as a logo) that has a different ratio than the original image, you can set up the Auto Sizing option, which allows your images to grow in either width or height while keeping the height or width fixed. For full details, see this help article.
If you're using an InDesign Template, also refer to these instructions for setting up your graphic frame in the best way possible.