checker if has picture or no. still have problem directing to success page if no picture