Adding core of photo plugin