added conditional requirements to make glue work with PIL==1.1.7 installed