creates new component for the image