fixed hasPicture boolean for sorting pictures