Fixed bug that is related to hardcoded image dimensions.