Fix post picture api endpoint