Develop an algorithm that determines when images are poorly compressed and recompress only those with poor ratios. Additionally compression should be performed when the image is much larger than the available area for display.