Decode base64 image from API

Thanks @shpak.serhiy

I´ve used this method which works pretty fine for showing on the page but not for saving it: Base 64 Encoded Image - #2 by kenlaji