added logging for finding image elements