toggle functions
images into db