Added size check to uimage signature