added favorite and unfavorite buttons in the image gallery