code for image handling for project site