Center Image and resize and preserve aspect ratio