added readBase64String to ByteArray, adapted CSS methods for any HTMLElement