fixed security error

Displaying image delete button when security options deny this
operation.