preseve aspect ratio of png and jpg images