in code/app/storage.go [186:193]
func (i Image) JSONBytes() ([]byte, error) { bytes, err := json.Marshal(i) if err != nil { return []byte{}, fmt.Errorf("could not marshal json for response: %s", err) } return bytes, nil }