Framework for applying effects on images and outputting new images