prevented crash by attempting to share an empty image