Done. Also added a comment in getImageElements too.