test if image exists