fixed read file size in loadFromSDCard function