added PIL to convert jpg