bug fixed with image checking
no library needed