made a module for python functions dealing with images
changed where modal is summoned