added minify helper, aspect ratio function & other