added ctx and images to this