def image_group_object_factory(image_id, group_id):
    """Cook up a fake imagegroup json object from given ids."""
    groupimage = {
        'image_id': image_id,
        'group_id': group_id
    }
    return groupimage