A javascript library to determine the actual size or mask of an image