converted pictures to base64 string in generic response for serializing later on