added image function again