added tests for ImageController