modified to work with SDL surfaces color
method to open any types of images with SDL