limit inserted image's size and change uniqueStamp to Sparker