add image sizing function
centering image