formats pictures in validation