added image handeling methods