temporary fix - PIL doesnt seem to work