Corrected a bug in ProfileWriter where profile images for data with less
than ~100 values was printed well.