updated pic attachment validator