added in images to ajax function