Image centering. setTimeouts used in rendering