Fix picture validation, redmine #7504