EPX scaling algorithm for pixel art