setting max-width and height on upload preview