Added a shadowing function for the images