fix getImage callback functions