Corrected preview canvas when specifing max_size other than 1:1