When I upload an image on wordpress, it automatically

When I upload an image on wordpress, it automatically creates 10 image versions of it. But most of times, some files are not used.

I remember it was a plugin and when you install it, it automatically disables the creation of 10 image versions. Images are created when they need/called from theme, so if for example I have a file.jpg and it is only displayed in a 150x150 area, it will only create a file-150x150.jpg not any other file.

There are some plugins that can generate on the fly the file without writing to disk but this requires lot of cpu and memory loading to the server. I prefer the file to be saved on the disk as file-150x150.jpg

Can you please suggest one plugin that will work with 3.5.2 or even better with 3.6 version of Wordpress?