added a forward slash that was forgotten
all function creates image files in public dir
pass images to page hash so it is accessible