Media model

Added a media model to upload and save images