added images functionality