added support for keeping the aspect ratio + config option