picture tag creation fix