FIX: reduce dependency on PIL by using scipy.misc