Added image related functions