Fixed frame length check in Graphics class