added image functions