def storageObject(uid, entity, url, storage_type):
    """image returns an image object. entity is the parent
    """
    fields = [{'key': 'uid', 'required': True, 'value': uid}, {'key': 'url',
        'required': True, 'value': url}]
    collection = entity.collection.get_name()
    entity = entity.get_name()
    storage_type = storage_type.replace(' ', '-').lower().capitalize()
    model = {'fields': fields, 'exclude_from_indexes': ['url'], 'key': [
        'Collection', collection, 'Entity', entity, storage_type, uid]}
    return model
