Math.floor applied for pixel rendering