unit tests for RenderImage