fixed an error where an image with no up/downvotes would break if up/downvoted