Show pre-load image during images load but all images are different size

Show pre-load image during images load but all images are different size

I want to display pre-load image center of image's div. But all images have different size so pre-load image can not be displayed in center of each image.

Thanks for advance!