don't pass imageData if you only need $imageData['file']