I' m using Odoo 12 CE. During image upload on product template or product variant page, Odoo resizes image so that it's aspect ratio is 1x1. All my product images are not square, so I can't use them, because Odoo adds white background to non-square images. Product extra images upload normally, without resizing to square. In current version (13) this behaviour is corrected, so that product aspect ratio doesn't change at upload.
How would it be possible to edit such behaviour in Odoo 12. More specifically, how should I use the same upload method (without resizing) which is used for extra images for product template/variant image?