Add functiontality for uploading images