Adding functionality to upload images when creating events