image resize on % to fit instead of vmin
added comments throughout flex and base to help refactor