scale bitmap before encoding it to a string
changed size to 512
reduced size