Prefix Picture Codes: a Decidable Class of Two-dimensional Codes