More tests and function implementations to Image and Stack