(WIP) Testing and mocking for ImageHandler.