Sets a square image size if height isn't specified.