Fixes and stubs

Added the stub for creating the image stack and fixed some minor errors.