Added publish function when picture is uploaded