image components being saved. Still need to clean up code