improve image tests