added a workaround for a PIL and Image conflict