corrected alignCenter for image elements