added stuff for adding images