Check image type on the server