Image positioning bug fix