fix bug: when picture is using, it’s not allowed to be deleted.