fixed lag issue, added Image class