postimage always returning invalid file error