refactored filesize_formatted(), to get rid of the slow pow() and log() functions for filesize calculation