get images functionality draft