Changed models, image width/height information now processed by PIL

gets information about images correctly