png to base64, refactoring, only numbers filter