Fixed image size calculation if path contained whitespaces (#13)