Bug Fix: Prevent attachment insert without image
Update: Check for delete_posts capability instead of user role for Subscribers
Update: Refactor and clean up