resizing and centering image loaded from atlas