adding max-width and max-height so that uploaded images are constrained inside their container