image related functions added