bugfix: "translate" needs to accept floats
added method to return cell size
apply a trick to translate whole image +0.5 for x and/or y, if cell size w and/or h is/are even numbers, to prevent "thick" lines