Rate-Distortion Based Fractal Image Compression