fixes #619: correct size of trimmed sprites