A class with a common interface to open, create and edit images files in different php libraries