removed 'else' from 'image' function