linux compatability fixes - mkdir and require rmagick
Fixed missing tiles due to rounded down floats