simplifying the image code
changing the firebase hierarchy