Fixed tempFilePath, and resizeImage not returning