making the image shadow class as a general one