Everything works except image persisting