add image tests
remove unused functions
add image2d example