Added ability to slice images in code