Added mime type in create_object method