improve tests for images