code saves current image for use in multiple methods
ignore this